package com.sophic_tech.hkb.controller;

import com.sophic_tech.hkb.Test;
import com.sophic_tech.hkb.utils.StringUtils;
import com.sophic_tech.hkb.utils.StringUtilsKt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Hello {

    @Autowired
    Test test;
    String phoneNumber = "18998992146";
    String username = StringUtils.randomUsername(8, true, true);
    boolean isPhoneNumber = StringUtilsKt.isPhoneNumber(phoneNumber);

    @GetMapping("/api/v1/hello")
    public String hello() {
        test.test();
        return username+" "+isPhoneNumber;
    }
}
